/************************************************************************/
/* Game                                                                 */
/************************************************************************/
#include "Game/Game Objects/Marios/NormalMario.h"

namespace TD_Game {

	/************************************************************************/
	/* Default definitions                                                  */
	/************************************************************************/
	const float NormalMario::marioSpeed = 5/60.0;


	NormalMario::NormalMario(const WaveInfo &gWaveInfo, const Coord2D &g_position, int pathDeviant, unsigned int baseMarioHP, unsigned int baseMarioGold, float baseMarioSpeed, TerrainTilemap * const terrainTilemap, marioTypes mType, baseMarioDirection cDirection) 
		: BaseMario (gWaveInfo, g_position, terrainTilemap, pathDeviant, cDirection) {
		loadResources(mType);
		m_currLife = m_maxLife = baseMarioHP;
		m_baseMarioGold = baseMarioGold;
		m_baseMarioSpeed = m_maxBaseMarioSpeed = baseMarioSpeed;
	}
	NormalMario::~NormalMario() {
		
	}

	void NormalMario::loadResources(marioTypes mType) {
		m_pAnimationSet = AnimationSetFactory::createMarioAnimationSet(mType, "R_idle");
		m_shapes.push_back(new RectangleShape(m_position, m_pAnimationSet->getSprites()->getTilesize()));
		m_maxBaseMarioSpeed = marioSpeed;
		m_baseMarioSpeed = marioSpeed;
	}


}